package com.usian;

import com.usian.pojo.Emp;
import com.usian.pojo.User;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "nacos-provider")
@RequestMapping("user")
public interface UserFeign {

    @RequestMapping("findById/{id}/{name}")
    public User findById(@PathVariable Integer id,@PathVariable String name);



    @GetMapping("findByIdd")
    public User findByIdd(@RequestParam Integer id,@RequestParam String name);


    @PostMapping("findByUser")
    public User findByUser(@RequestBody  User user);
}
